package com.example.myapplication.knowledges

class dog {
    var name: String = "小狗狗"
    var age: Int = 10
    var weight: Int = 110
}

fun main() {
    var p1 = Person()

    p1.intro()

    var p2 = Person()
    p2.name = "李四"
    p2.age = 18
    p2.intro()

    println(p1 == p2)

}

/**
 * 简单类
 */
class Person {
    var name: String = ""
    var age: Int = 0

    fun intro() {
        println("姓名: $name, 年龄: $age")
    }
}